import Vue from 'vue'
import VueRouter from 'vue-router'

import Index from '../components/Index.vue'
import Index1024 from '../components/Index1024.vue'
import Login from '../components/Login.vue'
import Macip from '../components/Macip.vue'
import QueryCurrent from '../components/QueryCurrent.vue'
import Card from '../components/Card.vue'
import QueryPast from '../components/QueryPast.vue'
import Summary from '../components/Summary.vue'
import Data from '../components/Data.vue'
import CardGrade from '../components/CardGrade.vue'
// import Management from '../components/Management.vue'
import Management from '../components/Management.vue'
import AdminCard from '../components/AdminCard.vue'
import Charts from '../components/Charts.vue'
import Evaluate from '../components/Evaluate.vue'
import ad from '../components/ad.vue'
import System from '../components/System.vue'
import Nissin from '../components/Nissin.vue'
import SmallTicket from '../components/SmallTicket.vue'
import Kaoqin from '../components/Kaoqin.vue'
import Humiture from '../components/Humiture.vue'
import DrugData from '../components/DrugData.vue'
import CashMonitoring from '../components/CashMonitoring.vue'
import CommodityPast from '../components/CommodityPast.vue'  
import CashierPast from '../components/CashierPast.vue'
import SalesAnalysis from '../components/SalesAnalysis.vue'
import SalesReceipts from '../components/SalesReceipts.vue'
import SalesSummary from '../components/SalesSummary.vue'
import PaymentMethodPast from '../components/PaymentMethodPast.vue'
import RetailAnalysisOfHour from '../components/RetailAnalysisOfHour.vue'

const router = new VueRouter({
    mode: 'hash', //history,hash
    routes: [{
        path: '/',
        component: Index,
        name: 'index'
    }, {
        path: '/index1024',
        component: Index1024,
        name: 'index1024'
    }, {
        path: '/login',
        component: Login,
        name: 'login'
    }, {
        path: '/macip',
        component: Macip,
        name: 'macip'
    }, {
        path: '/queryCurrent',
        component: QueryCurrent,
        name: 'queryCurrent'
    }, {
        path: '/card',
        component: Card,
        name: 'card'
    }, {
        path: '/queryPast',
        component: QueryPast,
        name: 'queryPast'
    }, {
        path: '/summary',
        component: Summary,
        name: 'summary'
    }, {
        path: '/data',
        component: Data,
        name: 'data'
    }, {
        path: '/cardGrade',
        component: CardGrade,
        name: 'cardGrade'
    }, {
        path: '/management',
        component: Management,
        name: 'management'
    }, {
        path: '/adminCard',
        component: AdminCard,
        name: 'adminCard'
    }, {
        path: '/charts',
        component: Charts,
        name: 'charts'
    }, {
        path: '/evaluate',
        component: Evaluate,
        name: 'evaluate'
    }, {
        path: '/ad',
        component: ad,
        name: 'ad'
    }, {
        path: '/system',
        component: System,
        name: 'system'
    }, {
        path: '/nissin',
        component: Nissin,
        name: 'nissin'
    }, {
        path: '/smallTicket',
        component: SmallTicket,
        name: 'smallTicket'
    }, {
        path: '/kaoqin',
        component: Kaoqin,
        name: 'kaoqin'
    }, {
        path: '/humiture',
        component: Humiture,
        name: 'humiture'
    }, {
        path: '/drugData',
        component: DrugData,
        name: 'drugData'
    }, {
        path: '/cashMonitoring',
        component: CashMonitoring,
        name: 'cashMonitoring'
    }, {
        path: '/salesReceipts',
        component: SalesReceipts,
        name: 'salesReceipts'
    }, {
        path: '/commodityPast',
        component: CommodityPast,
        name: 'commodityPast'
    }, {
        path: '/cashierPast',
        component: CashierPast,
        name: 'cashierPast'
    }, {
        path: '/salesAnalysis',
        component: SalesAnalysis,
        name: 'salesAnalysis'
    },{
        path: '/salesSummary',
        component: SalesSummary,
        name: 'salesSummary'
    },{
        path: '/paymentMethodPast',
        component: PaymentMethodPast,
        name: 'paymentMethodPast'
    },{
        path: '/RetailAnalysisOfHour',
        component: RetailAnalysisOfHour,
        name: 'RetailAnalysisOfHour'
    }]
});


export default router